package com.example.c5chaptar5.bean;
import java.io.UnsupportedEncodingException;
public class CharactorEncoding {
    public CharactorEncoding() {
    }
    public String toString (String string){
        String text = "";
        if(string != null &&!"".equals(string)){
            try{
                text = new String(string.getBytes("iso8859-1"),"GB18030");
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
            }
        }
        return text;
    }
}
